<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <script src="https://cdn.jsdelivr.net/npm/vue@2.6.14/dist/vue.js"></script>
  <title></title>
</head>
<body>
  <div id="root">
    {{title}}
    <my-title :title-text="title" class="aaa"></my-title>
  </div>
  <script type="module">
    Vue.config.productionTip = false

    const MyTitle = {
      // props: ['titleText'],
      inheritAttrs: false,
      template: `
        <h1>{{'world'}}</h1>
      `
    }

    var vm = new Vue({
      components: {
        MyTitle
      },

      data: {
        title: 'hello'
      },

      el: '#root',
      
    })
  </script>
</body>
</html>